Skip to content

Add "copy" button to all output boxes#3811

Draft
williamjallen wants to merge 1 commit into
Kitware:masterfrom
williamjallen:code-box-copy-btn
Draft

Add "copy" button to all output boxes#3811
williamjallen wants to merge 1 commit into
Kitware:masterfrom
williamjallen:code-box-copy-btn

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

Copying the contents of an output box to paste somewhere outside CDash is a frequent occurrence for many users. This PR improves the workflow by adding a "copy" button to the upper right corner of all output boxes to allow users to easily copy the contents to their clipboard.

image

@josephsnyder josephsnyder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this update in a lot of cases, but sufficiently long lines (like the Configure commands or Test commands might run into the copy button:

Image

While it doesn't cover a lot of information, would it be possible to build some space in the box for the button to reside next to the text?

@williamjallen

Copy link
Copy Markdown
Collaborator Author

@josephsnyder Good idea. The copy icon could be moved to a header for some types of boxes, but not others. I'll do some thinking about how to best address this. in the meantime, I'll move it to 5.3.

@williamjallen williamjallen marked this pull request as draft July 6, 2026 13:27
@williamjallen williamjallen modified the milestones: v5.2, v5.3 Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants